<?php
	/**
	 * Value object representation of a group sponsor.
	 */
	class SponsorVO {
		
		var $_explicitType="vo.SponsorVO";
		
		/** The unique ID of the sponsor. */
		var $sponsorUID;
		
		/** The unique ID of the group. */
		var $groupUID;
		
		/** The name of the sponsor. */
		var $sponsorName;
		
		/** A short description of the sponsor. */
		var $description;
		
		/** The website URL of the group sponsor. */
		var $sponsorURL;
		
		/** Creates a new instance of a SponsorVO. */
		public function SponsorVO() {}
		
		/**
		 * Maps a database record to a SponsorVO.
		 * @param $row The record to map to a SponsorVO.
		 * @return A new mapped instance of a SponsorVO.
		 */
		public static function mapObject($row) {
			
			$vo = new SponsorVO();
			
			$vo->sponsorUID 	= $row["sponsorUID"];
			$vo->groupUID 		= $row["groupUID"];
			$vo->sponsorName 	= $row["sponsorName"];
			$vo->description 	= $row["description"];
			$vo->sponsorURL 	= $row["sponsorURL"];
			
			return $vo;
		}
	}
?>